import request from '@/utils/request'
import {appConfig} from '../../config/app'

let service = appConfig.microServModules.mall + 'api/Sourcing'
let servicefig = appConfig.microServModules.mall + 'api/serviceBillConfig'

export function saveSourcingInfo (data) {
  return request(`${service}/saveSourcingInfo`, {method: 'post', data: data})
}

/**
 * 自动生成编码 
 * */
export function nextVal(data) {
    return request(`${servicefig}/nextVal`, {method: 'get', data})
  }
  
  export function mySourcingPage (data) {
    return request(`${service}/mySourcingPage`, {method: 'post', data: data})
  }

  export function abortedSourcingInfo (data) {
    return request(`${service}/abortedSourcingInfo`, {method: 'get', data: data})
  }

  export function getSourcingBaseInfo (data) {
    return request(`${service}/getSourcingBaseInfo`, {method: 'get', data: data})
  }
  export function getSourcingQuotationInfo (data) {
    return request(`${service}/getSourcingQuotationInfo`, {method: 'get', data: data})
  }
  export function querySourcingQuotationHisVO (data) {
    return request(`${service}/querySourcingQuotationHisVO`, {method: 'get', data: data})
  }